package person.locke.regexandgame.regex;

import java.util.List;

/**
 * Created by Locke on 2018/7/4.
 */
public class WordFrequency {

    private int frequency;

    private List<Location> locations;

    public WordFrequency() {
    }

    public WordFrequency(List<Location> locations) {
        this.locations = locations;
        this.frequency=locations.size();
    }

    public int getFrequency() {
        return frequency;
    }

    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }

    public List<Location> getLocations() {
        return locations;
    }

    public void setLocations(List<Location> locations) {
        this.locations = locations;
    }

    @Override
    public String toString() {
        return "WordFrequency{" +
                "frequency=" + frequency +
                ", locations=" + locations +
                '}';
    }
}
